import { ResponseData } from '../type.ts';

export interface PermissionList {
  id?: number;
  createTime?: string;
  updateTime?: string;
  pid: number;
  name: string;
  code: string | null;
  toCode?: string | null;
  type?: number;
  status?: string | null;
  level: 1 | 2 | 3 | 4;
  children?: PermissionList[];
  select?: boolean;
}

export interface PermissionListResData extends ResponseData {
  data: PermissionList[];
}
